import request from '@/utils/request'

export default{
    //获取分页数据
    getList(id){
        return request({
            url: `/eduservice/edu-chapter/findDescription/${id}`,
            method: 'get'
          })
    },


    
    //获取一条数据
    info(id){
        return request({
            url:`/eduservice/edu-chapter/info/${id}`,
            method:"get",
        })
    },
    //保存
    save(chapter){
        return request({
            url:`/eduservice/edu-chapter/save`,
            method:"post",
            data:chapter
        })
    },
    //更新
    update(chapter){
        return request({
            url:`/eduservice/edu-chapter/edit`,
            method:"put",
            data:chapter
        })
    },


    //删除
    deletet(id){
        return request({
            url:`/eduservice/edu-chapter/delete/${id}`,
            method:"delete",
        })
    },

}